package com.ruoyi.expert.controller;

import com.ruoyi.expert.pojo.DtTender;
import com.ruoyi.expert.pojo.Dtcontract;
import com.ruoyi.expert.pojo.Dtinformation;
import com.ruoyi.expert.service.Supplierservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 *  供应商首页： 信息详情显示
 *
 * @author wyp
 */
@RestController
@RequestMapping("/basicB")
public class SupplierController {
    @Autowired
    private Supplierservice service;

    @PostMapping("/listDtTender")
    public List<DtTender> SelectTender(){
        List<DtTender> dtTenders = service.SelectTender();
        System.out.println("tenders"+dtTenders);
        return dtTenders;
    }
    /** 供应商：我的资料列表controller */
    @PostMapping("/listinformation")
    public List<Dtinformation> Selectinformation(){
        List<Dtinformation> selectinformation = service.Selectinformation();
        return selectinformation;
    }
    /** 供应商：我的合同列表controller */
    @PostMapping("/listcontract")
    public List<Dtcontract> Selectcontract(){
        List<Dtcontract> selectcontract = service.Selectcontract();
        return selectcontract;
    }
}
